<div class="panel" ng-controller="productCtr">
	<div class="row">
		<div class="col-md-3">
			<button class="btn btn-default btn-block btn-lg" ng-click="findCategoryProducts('全部')" ng-class="classOfCategory('全部')">全部</button>
			<button class="btn btn-default btn-block btn-lg" ng-repeat="p in products|unique:'category'" ng-click="findCategoryProducts(p)" ng-class="classOfCategory(p)">{{p}}</button>
		</div>
		<div class="col-md-9">
			<div class="well" ng-repeat="p in productsOfPage">
				<h3>{{p.name}}<span class="pull-right label label-primary">{{p.price|currency:"￥"}}</span></h3>
				<a href="#" class="pull-right btn btn-default btn-success" ng-click="addShopToCart(p)">加入购物车</a>
				<span class="lead">{{p.description}}</span>
			</div>
		</div>
	</div>
	<div class="pull-right btn-group">
		<button class="btn btn-default" ng-repeat="num in pagesArray" ng-click="contentsPerPage(num)" ng-class="classOfPage(num)">{{num}}</button>
	</div>
</div>